package com.qpx.userservice.service;


import com.qpx.userservice.dao.UserDao;
import com.qpx.userservice.entity.TUserEnity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    UserDao userDao;

    public  void add(TUserEnity tUserEnity) {
        userDao.save(tUserEnity);
    }

    public TUserEnity findByUserName(String username){
        return userDao.findByUsername(username);
    }
}
